<%- title t('common.allowed_elements_and_attributes_title') %>
<%- description 'Elements and attributes allowed when posting to Greasy Fork.' %>

<p><%=t('common.allowed_elements_intro')%></p>

<ul id="help-allowed-elements">
	<li>&lt;* <%=get_markdown_sanitize_config[:attributes][:all].join('&#8203;|').html_safe%>&gt;</li>
	<% get_markdown_sanitize_config[:elements].sort.each do |el| %>
		<% attrs = get_markdown_sanitize_config[:attributes][el] %>
		<% protocols = get_markdown_sanitize_config[:protocols][el] %>
		<li>
			&lt;<%=el%><%
			if !attrs.nil?
				attrs.each do |attr| %>
					<%=attr%><%
					if protocols.present? && protocols[attr]
						%>=(<%=protocols[attr].join('&#8203;|').html_safe%>)<%
					end
				end
			end %>&gt;
		</li>
	<% end %>
</ul>

<p><%=t('common.allowed_elements_extra_info')%></p>
